<?php
namespace App\Model;
/**
 * Created by zhangyh.
 * User: zhangyh
 * Date: 2018/11/3
 * Time: 17:40
 */

use Illuminate\Database\Eloquent\SoftDeletes;

class Member extends BaseModel
{
    use  SoftDeletes;

    protected $table='member';
    protected $dates = ['created_at', 'updated_at', 'deleted_at'];

    public function activitys()
    {
        return $this->belongsToMany(Activity::class,'record','member_id','activity_id');
    }

}